package com.siwei.mes.service.experiment;

import com.github.pagehelper.PageInfo;
import com.siwei.mes.common.query.PageQuery;
import com.siwei.mes.entity.experiment.Experiment;
import com.siwei.mes.entity.experiment.ExperimentCheckTypeRecord;

import java.util.List;

/**
 * 原材料实验台账检查类型记录表(ExperimentCheckTypeRecord)表服务接口
 *
 * @author makejava
 * @since 2024-08-02 22:35:36
 */
public interface ExperimentCheckTypeRecordService {

    /**
     * 新增
     *
     * @param entity
     * @return
     */
    Long create(ExperimentCheckTypeRecord entity);

    /**
     * 修改
     *
     * @param entity
     */
    void update(ExperimentCheckTypeRecord entity);

    /**
     * 删除
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 获取所有分组  分页
     *
     * @param query
     * @return
     */
    PageInfo<ExperimentCheckTypeRecord> getPage(PageQuery<ExperimentCheckTypeRecord, ExperimentCheckTypeRecord> query);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    ExperimentCheckTypeRecord loadById(Long id);

    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentCheckTypeRecord> getAll(ExperimentCheckTypeRecord entity);

    /**
     * 根据试验台账新增原材料实验台账检查类型记录表
     *
     * @param entity
     * @return
     */
    void saveExperimentCheckTypeRecord(Experiment entity);
}
